﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Windows.Input;

using ABCat.Core;
using ABCat.Core.Plugins;
using ABCat.Core.Plugins.DataSets;
using ABCat.Core.Plugins.UI;
using ABCat.Shared;
using ABCat.Shared.Properties;

namespace ABCat.Plugins.NormalizationSettingsEditor.Standard
{
	public partial class NormalizationSettingsEditorUc
	{
		#region + Ctor +

		public NormalizationSettingsEditorUc()
		{
			InitializeComponent();
		}

		#endregion
		#region + Logic +

		private void PossibleValuesLb_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
		{
			var model = (NormalizationEditorViewModel)DataContext;
			if (model != null && !string.IsNullOrEmpty(model.CurrentPossibleValue))
			{
				model.ReplacementValue = model.CurrentPossibleValue;
			}
		}

		#endregion
	}
}